package com.atguigu.doubles;

/**
 * @ClassName DoubleNode
 * @DeScription 双向链表实体
 * @Author 剧情再美终是戏
 * @Date 2019/11/20 19:56
 * @Version 1.0
 **/
public class DoubleNode {


    private int id;

    private String name;

    private String des;

    private DoubleNode next; // 双向链表的下一个节点

    private DoubleNode pre; // 双向链表的上一个节点

    public DoubleNode(int id, String name, String des) {
        this.id = id;
        this.name = name;
        this.des = des;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public DoubleNode getNext() {
        return next;
    }

    public void setNext(DoubleNode next) {
        this.next = next;
    }

    public DoubleNode getPre() {
        return pre;
    }

    public void setPre(DoubleNode pre) {
        this.pre = pre;
    }

    @Override
    public String toString() {
        return "DoubleNode{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", des='" + des + '\'' +
                '}';
    }
}
